package cn.yyh.serviceProduct.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: EmpClient
 * @Package: cn.yyh.servicePet.client
 * @date 2021/7/10
 */
@FeignClient(name = "service-org")
@Component
public interface EmpClient {

    @GetMapping("/serviceOrg/emp/getByLoginInfoId/{id}")
    String getByLoginInfoId(@PathVariable("id") Long id,
                              @RequestHeader(required = true) String token);
}
